$(function(){
    // 切换内容
    var middleP2 = $('.middleP2')
    var m2box = $('.m2box ')
    var m2yc = $('.m2yc')
    middleP2.click(function(){
        middleP2.removeClass("mP2border")
        $(this).addClass('mP2border')
        if(this == middleP2[0]){
            m2yc.css('display','none')
            $(m2yc[0]).css('display','block')
        }else if(this == middleP2[1]){
            m2yc.css('display','none')
            $(m2yc[1]).css('display','block')
        }if(this == middleP2[2]){
            m2yc.css('display','none')
            $(m2yc[2]).css('display','block')
        }
    })
})